package getsmart.project.activity;

import getsmart.project.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.content.Intent;
import android.widget.Toast;

public class ChooseBelajar extends Activity{
	
	Button belajarDariVideo;
	Button belajarDariAnimasi;
	Button belajarDariPdf;
	Button belajarDenganSoal;
	
	public static String MenuPilihan = "";
	private static void getTypeStudy(String pilihanSiswa){
		ChooseBelajar.MenuPilihan = pilihanSiswa;
	}
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.choose_belajar);
        belajarDariVideo = (Button) findViewById(R.id.btnBelajarVideo);
        belajarDariVideo.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				MenuPilihan = "Belajar";
				if(ListProfil.profileID == 0){
					Toast.makeText(getBaseContext(), "Anda Belum memilih profil silahkan pilih profil dulu",
					Toast.LENGTH_LONG).show();
				}
				else{
					Intent i = new Intent(ChooseBelajar.this,ViewListVideo.class);
					startActivity(i);
				}
			}
		});
        belajarDariAnimasi = (Button) findViewById(R.id.btnBelajarAnimasi);
        belajarDariAnimasi.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				MenuPilihan = "Test";
				if(ListProfil.profileID == 0){
					Toast.makeText(getBaseContext(), "Anda Belum memilih profil silahkan pilih profil dulu",
					Toast.LENGTH_LONG).show();
				}
				else{
					Intent i = new Intent(ChooseBelajar.this,ChooseKelas.class);
					startActivity(i);
				}
			}
		});
        belajarDariPdf = (Button) findViewById(R.id.btnBelajarPdf);
        belajarDariPdf.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(ChooseBelajar.this,FiturProfil.class);
				startActivity(i);
			}
		});

        belajarDenganSoal = (Button) findViewById(R.id.btnBelajarSoal);
        belajarDenganSoal.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				MenuPilihan = "Belajar";
				Intent i = new Intent(ChooseBelajar.this,GaleriBelajar.class);
				startActivity(i);
			}
		});
        
    }
}
